#!/usr/bin/python
#-*- coding:utf-8 -*-
import libtorrent, gui
def torrent(file, dest, sess):
	t = libtorrent.bdecode(open(file, "r").read())
	info = libtorrent.torrent_info(t)
	torrent = sess.add_torrent(info, dest)
	return (torrent, info, t)
